<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询老师</title>
    <style>
        a{text-decoration: none}
    </style>

</head>
<body>
    <h4><a href="../../student/Index/index" style="text-decoration: none">返回管理员界面</a></h4>

    <a href="insertTeacher">添加老师</a>
    <table border="1" cellspacing="0">
        <tr>
            <th>老师名字</th>
            <th>老师密码</th>
            <th>老师性别</th>
            <th>老师年龄</th>
            <th>科目</th>
            <th>时间</th>
            <th>操作</th>
        </tr>

        {foreach($selectTeacher as $key=>$value)}
        <tr>
            <td>{$value.name}</td>
            <td>{$value.password}</td>
            <td>{$value.sex}</td>
            <td>{$value.age}</td>
            <td>{$value.c_name}</td>
            <td>{$value.create_time}</td>
            <td> <a href="deleteTeacher?id={$value.id}">删除</a> <a href="updateTeacher?id={$value.id}">修改</a> </td>
        </tr>
        {/foreach}

    </table>



</body>
</html>